const path = require('path')

module.exports = {
  indexPath: 'blow/index.html',
  assetsDir: 'blow/static',
  publicPath: '/',
  devServer: {
    overlay: {
      warnings: false,
      errors: false
    },
    proxy: {
      '/bl/api': {
        target: 'http://rap2api.taobao.org/app/mock/116161'
      }
    }
  },
  pluginOptions: {
    'style-resources-loader': {
      preProcessor: 'less',
      patterns: [path.resolve(__dirname, './src/assets/less/variable.less')]
    }
  }
}
